<?php

namespace app\admin\validate;

class Exam extends Common
{
    protected $rule = [
        'exam_name' => 'require',
        'subjectid' => 'require|number|gt:0',
        'exam_time' => 'require|number|gt:0',
        'exam_score' => 'require|number|gt:0',
        'pass_line' => 'require|number|gt:0',
    ];
    protected $message = [
        'exam_name.require' => '请输入试卷名称',
        'subjectid.number' => '科目ID参数错误，请联系管理员',
        'exam_time.require' => '请输入考试时间',
        'exam_time.number' => '请输入考试时间',
        'exam_score.require' => '请输入试卷总分',
        'exam_score.number' => '请输入试卷总分',
        'pass_line.require' => '请输入及格线分数',
        'pass_line.number' => '请输入及格线分数',
    ];
}